﻿IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('TempName') AND type = 'U') DROP TABLE TempName